;
(function () {

  'use strict';

  angular.module('directives.customActivity')
    .directive('summaryProvinceAssess', summaryProvinceAssess)
    .directive('summaryProvinceAssessLayout', summaryProvinceAssessLayout);

  function summaryProvinceAssess(summaryProvinceAssessService) {

    return {
      restrict: 'A',
      template: '<div class="center"></div><core-loading ng-hide="info.loading"></core-loading>',
      link: function (scope, element, attrs) {
        scope.info = summaryProvinceAssessService;
        summaryProvinceAssessService.queryBySys(attrs.summaryProvinceAssess, element.find('div')[0]);
      }
    }
  }

  summaryProvinceAssess.$inject = ['summaryProvinceAssessService'];

  function summaryProvinceAssessLayout() {

    return {
      restrict: 'E',
      replace: true,
      template: '<div layoutdom="4" draggable="true" class="model" module-name="summary-province-assess-layout">' +
      '<label class="title title-color2">对省考核结果</label>' +
      '<div slider slider-include="summary-province-assess"></div>' +
      '</div>'
    }
  }
})();